/*
 Navicat Premium Data Transfer

 Source Server         : 192.168.0.232SQL2016
 Source Server Type    : SQL Server
 Source Server Version : 13001601
 Source Host           : 192.168.0.232\SQL2016:1433
 Source Catalog        : Test
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 13001601
 File Encoding         : 65001

 Date: 06/12/2024 10:01:48
*/


-- ----------------------------
-- Table structure for TreeMenu
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[TreeMenu]') AND type IN ('U'))
	DROP TABLE [dbo].[TreeMenu]
GO

CREATE TABLE [dbo].[TreeMenu] (
  [F_Id] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [F_ParentId] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_Desc] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_CreateTime] date  NULL,
  [F_CreateUser] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_LastModifyTime] date  NULL,
  [F_LastModifyUser] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_DeleteTime] date  NULL,
  [F_DeleteUser] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_DeleteMark] int  NULL
)
GO

ALTER TABLE [dbo].[TreeMenu] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'GUID',
'SCHEMA', N'dbo',
'TABLE', N'TreeMenu',
'COLUMN', N'F_Id'
GO

EXEC sp_addextendedproperty
'MS_Description', N'父级id',
'SCHEMA', N'dbo',
'TABLE', N'TreeMenu',
'COLUMN', N'F_ParentId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'描述',
'SCHEMA', N'dbo',
'TABLE', N'TreeMenu',
'COLUMN', N'F_Desc'
GO

EXEC sp_addextendedproperty
'MS_Description', N'创建时间',
'SCHEMA', N'dbo',
'TABLE', N'TreeMenu',
'COLUMN', N'F_CreateTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'创建人',
'SCHEMA', N'dbo',
'TABLE', N'TreeMenu',
'COLUMN', N'F_CreateUser'
GO

EXEC sp_addextendedproperty
'MS_Description', N'修改时间',
'SCHEMA', N'dbo',
'TABLE', N'TreeMenu',
'COLUMN', N'F_LastModifyTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'修改人',
'SCHEMA', N'dbo',
'TABLE', N'TreeMenu',
'COLUMN', N'F_LastModifyUser'
GO

EXEC sp_addextendedproperty
'MS_Description', N'删除时间',
'SCHEMA', N'dbo',
'TABLE', N'TreeMenu',
'COLUMN', N'F_DeleteTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'删除人',
'SCHEMA', N'dbo',
'TABLE', N'TreeMenu',
'COLUMN', N'F_DeleteUser'
GO

EXEC sp_addextendedproperty
'MS_Description', N'删除标识',
'SCHEMA', N'dbo',
'TABLE', N'TreeMenu',
'COLUMN', N'F_DeleteMark'
GO


-- ----------------------------
-- Records of [TreeMenu]
-- ----------------------------
INSERT INTO [dbo].[TreeMenu]  VALUES (N'1', N'-1', N'父级', N'2024-01-01', N'admin', NULL, NULL, NULL, NULL, NULL)
GO

INSERT INTO [dbo].[TreeMenu]  VALUES (N'3655ba6e-8372-4482-9107-8a4d5498b07f', N'feb609c3-e042-40c1-a2aa-9c47fc226b06', N'test1', N'2024-12-04', N'admin', N'1900-01-01', NULL, N'1900-01-01', NULL, N'0')
GO

INSERT INTO [dbo].[TreeMenu]  VALUES (N'4', N'-1', N'外观不良', N'2024-01-01', N'admin', NULL, NULL, NULL, NULL, NULL)
GO

INSERT INTO [dbo].[TreeMenu]  VALUES (N'5', N'4', N'外观磨损', N'2024-01-01', N'admin', NULL, NULL, NULL, NULL, NULL)
GO

INSERT INTO [dbo].[TreeMenu]  VALUES (N'6', N'5', N'磨损严重', N'2024-01-01', N'admin', NULL, NULL, NULL, NULL, NULL)
GO

INSERT INTO [dbo].[TreeMenu]  VALUES (N'646750f7-41d1-41bf-8286-4150e000063a', N'd0ac7230-c798-49e9-99f1-29d603185dbe', N'孙子级', N'2024-12-04', N'admin', N'1900-01-01', NULL, N'1900-01-01', NULL, N'0')
GO

INSERT INTO [dbo].[TreeMenu]  VALUES (N'd0ac7230-c798-49e9-99f1-29d603185dbe', N'1', N'子级', N'2024-12-04', N'admin', N'1900-01-01', NULL, N'1900-01-01', NULL, N'0')
GO

INSERT INTO [dbo].[TreeMenu]  VALUES (N'feb609c3-e042-40c1-a2aa-9c47fc226b06', N'-1', N'test11', N'1900-01-01', NULL, N'1900-01-01', NULL, N'1900-01-01', NULL, N'0')
GO


-- ----------------------------
-- Primary Key structure for table TreeMenu
-- ----------------------------
ALTER TABLE [dbo].[TreeMenu] ADD CONSTRAINT [PK__TreeMenu__2C6EC723FF7CBC27] PRIMARY KEY CLUSTERED ([F_Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

